<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Share extends CI_Controller
{
    private $user_id;
	function __construct()
	{
		parent::__construct();
        $this->load->config('layout', TRUE);
		$this->load->helper(array('form', 'url'));
		$this->load->library('form_validation');
		$this->load->library('security');
		$this->load->library('tank_auth');
		$this->load->library('backyard_view');
        $this->load->library('houseme_view');
        $this->load->library('facebook');
		$this->lang->load('tank_auth');
		$this->lang->load('backyard');
        $this->load->model('post_model');
        $this->user_id = $this->session->userdata('user_id');
	}

	function index(){
        $user_id = $this->uri->segment(2);
        $data['category'] = $this->config->item('category', 'layout');
        $data['login_area'] = $this->load->view('houseme/login_area', '', true);
        $user_shares = $this->user_model->selectUserShares($user_id);
        $data['user_shared'] = $user_shares;
        $this->load->view('houseme/share_index', $data);

    }
    
}

/* End of file backyard.php */
/* Location: ./application/controllers/backyard.php */